Skip to content

Replace ModelEditorViewTracker with modeling store and events#3065

Merged
charisk merged 2 commits intomainfrom
charisk/replace-model-editor-view-tracket
Nov 14, 2023
Merged

Replace ModelEditorViewTracker with modeling store and events#3065
charisk merged 2 commits intomainfrom
charisk/replace-model-editor-view-tracket

Conversation

@charisk
Copy link
Copy Markdown
Contributor

@charisk charisk commented Nov 10, 2023

This change removes the ModelEditorViewTracker by using the modeling store and two new events:

  • RevealInModelEditorEvent
  • FocusDbEvent

I prefer this solution because it means managing less state, but if people disagree, I'm happy to close the PR.

Checklist

N/A:

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@charisk charisk requested a review from a team as a code owner November 10, 2023 11:51
@charisk charisk force-pushed the charisk/replace-model-editor-view-tracket branch from a301004 to 8ed4be0 Compare November 10, 2023 12:56
@charisk charisk force-pushed the charisk/replace-model-editor-view-tracket branch from 8ed4be0 to c93f451 Compare November 10, 2023 14:04
Copy link
Copy Markdown
Contributor

@norascheuch norascheuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good, I just have two questions.

Comment thread extensions/ql-vscode/src/model-editor/modeling-events.ts Outdated
Comment thread extensions/ql-vscode/src/model-editor/modeling-store.ts
@norascheuch
Copy link
Copy Markdown
Contributor

Have you tested the changes manually @charisk?

@charisk
Copy link
Copy Markdown
Contributor Author

charisk commented Nov 13, 2023

Have you tested the changes manually @charisk?

Yep. Have you found any issues?

Copy link
Copy Markdown
Contributor

@norascheuch norascheuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! 🚀

@charisk
Copy link
Copy Markdown
Contributor Author

charisk commented Nov 14, 2023

It doesn't look like there's feedback from anyone else on this so I'll go ahead and merge.

@charisk charisk merged commit be2891d into main Nov 14, 2023
@charisk charisk deleted the charisk/replace-model-editor-view-tracket branch November 14, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants